<?php

use think\facade\Route;


Route::group('admin', function () {
    //文章分类列表
    Route::get('AdminArticle/cateList', 'AdminArticle/cateList');
    //文章分类详情
    Route::get('AdminArticle/cateInfo', 'AdminArticle/cateInfo');
    //添加文章分类
    Route::post('AdminArticle/cateAdd', 'AdminArticle/cateAdd');
    //编辑文章分类
    Route::post('AdminArticle/cateUpdate', 'AdminArticle/cateUpdate');
    //文章列表
    Route::get('AdminArticle/articleList', 'AdminArticle/articleList');
    //文章详情
    Route::get('AdminArticle/articleInfo', 'AdminArticle/articleInfo');
    //添加文章
    Route::post('AdminArticle/articleAdd', 'AdminArticle/articleAdd');
    //编辑文章
    Route::post('AdminArticle/articleUpdate', 'AdminArticle/articleUpdate');
    //文章分类下拉框
    Route::get('AdminArticle/cateSelect', 'AdminArticle/cateSelect');
    //评论列表
    Route::get('AdminArticle/evaluateList', 'AdminArticle/evaluateList');
    //评论修改
    Route::post('AdminArticle/evaluateUpdate', 'AdminArticle/evaluateUpdate');

    Route::get('AdminArticle/getArticleCateType', 'AdminArticle/getArticleCateType');
    //配置列表
    Route::get('AdminCar/siteList', 'AdminCar/siteList');
    //详情
    Route::get('AdminCar/siteInfo', 'AdminCar/siteInfo');
    //添加配置
    Route::post('AdminCar/siteAdd', 'AdminCar/siteAdd');
    //更新配置
    Route::post('AdminCar/siteUpdate', 'AdminCar/siteUpdate');
    //汽车分类列表
    Route::get('AdminCar/cateList', 'AdminCar/cateList');
    //汽车分类详情
    Route::get('AdminCar/cateInfo', 'AdminCar/cateInfo');
    //添加汽车分类
    Route::post('AdminCar/cateAdd', 'AdminCar/cateAdd');
    //编辑汽车分类
    Route::post('AdminCar/cateUpdate', 'AdminCar/cateUpdate');
    //汽车列表
    Route::get('AdminCar/carList', 'AdminCar/carList');
    //汽车详情
    Route::get('AdminCar/carInfo', 'AdminCar/carInfo');
    //添加汽车
    Route::post('AdminCar/carAdd', 'AdminCar/carAdd');
    //编辑汽车
    Route::post('AdminCar/carUpdate', 'AdminCar/carUpdate');
    //品牌下拉
    Route::get('AdminCar/cateSelect', 'AdminCar/cateSelect');
    //配置下拉框
    Route::get('AdminCar/siteSelect', 'AdminCar/siteSelect');
    //颜色筛选列表
    Route::get('AdminSetting/colorList', 'AdminSetting/colorList');
    //添加颜色筛选
    Route::post('AdminSetting/colorAdd', 'AdminSetting/colorAdd');
    //编辑颜色筛选
    Route::post('AdminSetting/colorUpdate', 'AdminSetting/colorUpdate');
    //颜色详情
    Route::get('AdminSetting/colorInfo', 'AdminSetting/colorInfo');
    //排量列表
    Route::get('AdminSetting/displacementList', 'AdminSetting/displacementList');
    //排量详情
    Route::get('AdminSetting/displacementInfo', 'AdminSetting/displacementInfo');
    //添加排量
    Route::post('AdminSetting/displacementAdd', 'AdminSetting/displacementAdd');
    //编辑排量
    Route::post('AdminSetting/displacementUpdate', 'AdminSetting/displacementUpdate');
    //车型列表
    Route::get('AdminSetting/modelList', 'AdminSetting/modelList');
    //添加车型
    Route::post('AdminSetting/modelAdd', 'AdminSetting/modelAdd');
    //编辑车型
    Route::post('AdminSetting/modelUpdate', 'AdminSetting/modelUpdate');
    //车型详情
    Route::get('AdminSetting/modelInfo', 'AdminSetting/modelInfo');
    //里程列表
    Route::get('AdminSetting/mileageList', 'AdminSetting/mileageList');
    //添加里程
    Route::post('AdminSetting/mileageAdd', 'AdminSetting/mileageAdd');
    //编辑里程
    Route::post('AdminSetting/mileageUpdate', 'AdminSetting/mileageUpdate');
    //里程详情
    Route::get('AdminSetting/mileageInfo', 'AdminSetting/mileageInfo');
    //标准列表
    Route::get('AdminSetting/standardList', 'AdminSetting/standardList');
    //添加标准
    Route::post('AdminSetting/standardAdd', 'AdminSetting/standardAdd');
    //编辑标准
    Route::post('AdminSetting/standardUpdate', 'AdminSetting/standardUpdate');
    //标准详情
    Route::get('AdminSetting/standardInfo', 'AdminSetting/standardInfo');
    //车龄列表
    Route::get('AdminSetting/yearList', 'AdminSetting/yearList');
    //添加车龄
    Route::post('AdminSetting/yearAdd', 'AdminSetting/yearAdd');
    //编辑车龄
    Route::post('AdminSetting/yearUpdate', 'AdminSetting/yearUpdate');
    //车龄详情
    Route::get('AdminSetting/yearInfo', 'AdminSetting/yearInfo');
    //价格列表
    Route::get('AdminSetting/priceList', 'AdminSetting/priceList');
    //添加价格
    Route::post('AdminSetting/priceAdd', 'AdminSetting/priceAdd');
    //编辑价格
    Route::post('AdminSetting/priceUpdate', 'AdminSetting/priceUpdate');
    //价格详情
    Route::get('AdminSetting/priceInfo', 'AdminSetting/priceInfo');
    //颜色筛选下拉
    Route::get('AdminSetting/colorSelect', 'AdminSetting/colorSelect');
    //排量筛选下拉
    Route::get('AdminSetting/displacementSelect', 'AdminSetting/displacementSelect');
    //里程筛选下拉
    Route::get('AdminSetting/mileageSelect', 'AdminSetting/mileageSelect');
    //车型筛选下拉
    Route::get('AdminSetting/modelSelect', 'AdminSetting/modelSelect');
    //价格筛选下拉
    Route::get('AdminSetting/priceSelect', 'AdminSetting/priceSelect');
    //标准筛选下拉
    Route::get('AdminSetting/standardSelect', 'AdminSetting/standardSelect');
    //车龄筛选下拉
    Route::get('AdminSetting/yearSelect', 'AdminSetting/yearSelect');



});


//商城后端路由表
Route::group('app', function () {
    //文章分类列表
    Route::get('IndexArticle/cateList', 'IndexArticle/cateList');
    //文章列表(cate_id,title)
    Route::get('IndexArticle/articleList', 'IndexArticle/articleList');
    //员工文章列表
    Route::get('IndexArticle/staffArticleList', 'IndexArticle/staffArticleList');
    //编辑文章
    Route::post('IndexArticle/articleUpdate', 'IndexArticle/articleUpdate');

    Route::post('IndexArticle/articleStatusUpdate', 'IndexArticle/articleStatusUpdate');

    Route::post('IndexArticle/articleAdd', 'IndexArticle/articleAdd');
    //文章列表(cate_id,title)
    Route::get('IndexArticle/articleListDiy', 'IndexArticle/articleListDiy');
    //文章详情（id）
    Route::get('IndexArticle/articleInfo', 'IndexArticle/articleInfo');
    //评价列表(article_id)
    Route::get('IndexArticle/evaluateList', 'IndexArticle/evaluateList');
    //添加评论
    Route::post('IndexArticle/evaluateAdd', 'IndexArticle/evaluateAdd');
    //点赞 取消点赞（article_id）
    Route::post('IndexArticle/starUpdate', 'IndexArticle/starUpdate');
    //汽车品牌列表
    Route::get('IndexCar/cateList', 'IndexCar/cateList');
    //汽车热门平拍
    Route::get('IndexCar/hotCateList', 'IndexCar/hotCateList');
    //添加品牌点击数量
    Route::post('IndexCar/addClickNum', 'IndexCar/addClickNum');
    //品牌详情
    Route::get('IndexCar/cateInfo', 'IndexCar/cateInfo');
    //汽车列表
    Route::get('IndexCar/carList', 'IndexCar/carList');
    //汽车详情
    Route::get('IndexCar/carInfo', 'IndexCar/carInfo');
    //筛选下拉框
    Route::get('IndexCar/screenSelect', 'IndexCar/screenSelect');

    Route::get('IndexCar/siteInfo', 'IndexCar/siteInfo');

    Route::get('IndexCar/carListDiy', 'IndexCar/carListDiy');



});

















